package com.spring.schedule_system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spring.schedule_system.entity.Course;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository("CourseDao")
public interface CourseDao extends BaseMapper<Course> {
    @Insert("insert into tb_course(course_name,course_num,course_nature,course_category,course_computerTime) select course_name,course_num,course_nature,course_category,course_computerTime from `tb_schedule1`;")
    int insertCourse();

}
